package me.xsomnus.shardingjdbcdemo2.pojo.enums;

import com.baomidou.mybatisplus.core.enums.IEnum;

/**
 * @author somnus_xiawenye
 * @since 2018/10/9 10:06
 */
public enum Gender implements IEnum<Integer> {
    MALE(1),
    FEMALE(2);

    private final int code;

    Gender(int code) {
        this.code = code;
    }

    @Override
    public Integer getValue() {
        return code;
    }
}